package com.yumiusik.util;

import pe.com.trestperu.common.listener.ContextLoaderListener;
import pe.com.trestperu.common.util.PropertiesReader;

public class YumiusikConstants {

	private static PropertiesReader getMessageSource(){
		return (PropertiesReader)ContextLoaderListener.getBean("messageSource");
	}

	public static class TYPE_ACCESS {
		public static final String Search = "SR";
		public static final String Related = "RL";
		public static final String Verify = "VR";
		public static final String Play = "PL";
		public static final String GetInformation = "GI"; 
		public static final String ShareEmailSong = "ES";
		public static final String ShareEmailPlayList = "EP";
		public static final String ShareFacebookSong = "FS";
		public static final String ShareFacebookPlayList = "FP";
		public static final String ShareTweeterSong = "TS";
		public static final String ShareTweeterPlayList = "TP";
	}

	public static class SI_NO {
		public static final String SI = "SI";
		public static final String NO = "NO";
	}

	public static String APIkey = getMessageSource().getMessage("APIkey");

	public static String APIsecret = getMessageSource().getMessage("APIsecret");

	public static boolean developer = "true".equalsIgnoreCase(getMessageSource().getMessage("developer"));

	public static String APP_SERVER_URL = getMessageSource().getMessage("APP_SERVER_URL");

	public static String LOCAL_APP_SERVER_URL = getMessageSource().getMessage("LOCAL_APP_SERVER_URL");

	public static String SERVICE_COUNTRY_CONVERT = getMessageSource().getMessage("SERVICE_COUNTRY_CONVERT");

	public static String MP3_DOWNLOAD_SNIPMP3_SERVICE = getMessageSource().getMessage("MP3_DOWNLOAD_SNIPMP3_SERVICE");

	public static String STATIC_USER_AGENT = getMessageSource().getMessage("STATIC_USER_AGENT");

	public static String YOUTUBE_GENERAL_URL = getMessageSource().getMessage("YOUTUBE_GENERAL_URL");

	public static String YOUTUBE_GET_DATA_URL = getMessageSource().getMessage("YOUTUBE_GET_DATA_URL");

	public static String YOUTUBE_GET_RELATED_URL = getMessageSource().getMessage("YOUTUBE_GET_RELATED_URL");

	public static String YOUTUBE_GET_VIDEO_INFO = getMessageSource().getMessage("YOUTUBE_GET_VIDEO_INFO");

	public static String MP3_DOWNLOAD_INFO_URL = getMessageSource().getMessage("MP3_DOWNLOAD_INFO_URL");

	public static String MP3_DOWNLOAD_INFO_URL_QUERY = getMessageSource().getMessage("MP3_DOWNLOAD_INFO_URL_QUERY");

	public static String MP3_DOWNLOAD_URL = getMessageSource().getMessage("MP3_DOWNLOAD_URL");

	public static String MP3_DOWNLOAD_URL_QUERY = getMessageSource().getMessage("MP3_DOWNLOAD_URL_QUERY");

	public static String ERROR_MSG = getMessageSource().getMessage("ERROR_MSG");

	public static String MAIL_USER_FROM = getMessageSource().getMessage("MAIL_USER_FROM");

	public static String MAIL_USER_TO = getMessageSource().getMessage("MAIL_USER_TO");

}